import url from '@/url.config'
export default ({ service, request, tools}) => ({
    getEquipmentInfoByUserId(id) {
        return request({
            url: url.ip3+"/equipment/getEquipmentInfoByUserId/"+id,
            method: "get"
        })
    },
    ///car/mileage/day/total
    getMileageDay(id) {
        return request({
            url: url.ip1+"/car/mileage/total?id="+id,
            method: "get"
        })
    },
    getMileageMonth(data) {
        return request({
            url: url.ip1+"/car/mileage/month/total",
            method: "post",
            data:data
        })
    },
    getEquipmentStatusList() {
        return request({
            url: url.ip3+"/equipment/getEquipmentStatus/4",
            method: "get"
        })
    },
    getRecentDataStatistics() {
        return request({
            url: url.ip3+"/monitor/warning/getHandleEcharts",
            method: "post",
            data:{}
        })
    },
    //operation/saveQuantumPo
    getQuantumPo(data) {
        return request({
            url: url.ip1+"/operation/saveQuantumPo",
            method: "post",
            data:data
        })
    },
    getAreaInfoByLevelList() {
        return request({
            url: url.ip2+"/area/findAreaInfoByLevel?level=3&searchKey=",
            method: "get"
        })
    },
    getAllMonitorList() {
        return request({
            url: url.ip3+"/monitor/getAllMonitorGeom",
            method: "post"
        })
    },
    //
    getMonitorStatusCount() {
        return request({
            url: url.ip3+"/monitor/getMonitorStatusCount",
            method: "post"
        })
    },
    getHandleCount() {
        return request({
            url: url.ip3+"/monitor/warning/getHandleStatusCount",
            method: "post"
        })
    },
    getFindMonitorDataByMn (mn) {
        return request({
            url: url.ip3+"/monitor/findMonitorDataByMn/"+mn,
            method: "post"
        })
    },
})
